<?php

namespace GuanChanghu\Models;


/**
 * @author 管昌虎
 * Class TableAttribute
 * @tag encryption free
 * @method static void setMax(string $table, int $value, string $field = '')
 * @method static void incrementMax(string $table, string $field = '')
 * @method static void decrementMax(string $table, string $field = '')
 * @method static void repairMax(string $table, string $field = '')
 * @method static void setCount(string $table, int $value)
 * @method static void incrementCount(string $table)
 * @method static void decrementCount(string $table)
 * @method static void repairCount(string $table)
 * @package GuanChanghu\Models
 * Created on 2023/1/2 15:30
 * Created by 管昌虎
 * Email guanchanghu626@163.com
 */
class TableAttribute extends Model
{
    use \GuanChanghu\Models\Traits\TableAttribute;

    /**
     * @var string
     */
    protected $table = 'table_attribute';

    /**
     * 数值精度处理
     *
     * @var string[]
     */
    protected $casts = [
        'table' => 'string',
        'function' => 'string',
        'field' => 'string',
        'attribute_value_int' => 'integer',
        'attribute_value_string' => 'string',
    ];
}
